In [1]:
from load_dataset import *
from plots import *
In [2]:
ld = LoadDataset()
ld.add_well("../E.csv",54.216024,23.317928)
ld.add_well("../F.csv",54.245660,23.334958)
k,m = ld.add_well("../L.csv",54.223237,23.351474)
In [3]:
m
Out[3]:
In [4]:
p = LogsPlots(k)
p.plot_a_log(1)
p.plot_a_log(2)
This is the format of your plot grid:
[ (1,1) x1,y1 ]    [ (1,2) x2,y1 ]    [ (1,3) x3,y1 ]    [ (1,4) x4,y1 ]    [ (1,5) x5,y1 ]    [ (1,6) x6,y1 ]    [ (1,7) x7,y1 ]    [ (1,8) x8,y1 ]    [ (1,9) x9,y1 ]    [ (1,10) x10,y1 ]  [ (1,11) x11,y1 ]  [ (1,12) x12,y1 ]

This is the format of your plot grid:
[ (1,1) x1,y1 ]    [ (1,2) x2,y1 ]    [ (1,3) x3,y1 ]    [ (1,4) x4,y1 ]    [ (1,5) x5,y1 ]    [ (1,6) x6,y1 ]    [ (1,7) x7,y1 ]    [ (1,8) x8,y1 ]    [ (1,9) x9,y1 ]    [ (1,10) x10,y1 ]  [ (1,11) x11,y1 ]  [ (1,12) x12,y1 ]

In [5]:
p.plot_property('RHOB')
This is the format of your plot grid:
[ (1,1) x1,y1 ]  [ (1,2) x2,y2 ]  [ (1,3) x3,y3 ]

In [6]:
hl = ld.height_adjustment()
 Height Adjustment for each well 


 LOG NUMBER : 0

 Top Layer : 7400
 Bottom Layer : 7800


 LOG NUMBER : 1

 Top Layer : 7400
 Bottom Layer : 7800


 LOG NUMBER : 2

 Top Layer : 7400
 Bottom Layer : 7800
In [7]:
from grid import *
g1 = grid(k,50)
p = g1.grid_main()

Dataframe Creation

In [8]:
from dataframe import *
n_dd = merge_dataset(hl).merge(['RHOB'])
n_dd.head()
Out[8]:
DEPTH lat long RHOB
0 7400.3 54.216024 23.317928 2.302
1 7400.8 54.216024 23.317928 2.304
2 7401.3 54.216024 23.317928 2.321
3 7401.8 54.216024 23.317928 2.348
4 7402.3 54.216024 23.317928 2.346

Model validation

In [9]:
from sklearn_ import *

model = interpolation(n_dd)
model.validation(SVR)
Scoring (r2) : -0.25 (+/- 0.43)

Test Dataframe

In [10]:
from dataframe import *
populate = populate(p)
test_df = populate.populated_dataframe(hl)

Prediction

In [11]:
test_df = model.prediciton(test_df,algorithm=SVR)
In [12]:
test_df.head()
Out[12]:
DEPTH lat long RHOB
0 7400.3 54.22414 23.325092 2.402822
1 7400.8 54.22414 23.325092 2.430205
2 7401.3 54.22414 23.325092 2.448654
3 7401.8 54.22414 23.325092 2.454325
4 7402.3 54.22414 23.325092 2.447204
In [13]:
rp = result_plots()
rp.plot_3d(test_df,'RHOB')
In [ ]: